app.controller('moreController', ['$scope', '$stateParams', '$rootScope', '$state', function($scope, $stateParams, $rootScope, $state) {
	$scope.shop = {
		list: " ",

	}

	$scope.listBtn = function(num) {
		$scope.shop.list = num;
		if(num == 2) {
			$('#exList2').bootstrapTable({
				url: "/wechat_mt5/mt/user/to/reviews",
				method: 'get',
				columns: [{
					field: 'mtLogin',
					title: '交易账号'
				}, {
					field: 'type',
					title: '账号类型',
					formatter: type,

				}, {
					field: 'mail',
					title: '邮箱',

				}, {
					field: 'mobile',
					title: '联系方式',

				}, {
					field: 'createTime',
					title: '提交日期',
					formatter: date

				}, {
					field: 'state',
					title: '操作',
					formatter: result,

				}],
				height: 700,
				pageSize: 10,
				pageList: [10, 25, 50, 100],
				showRefresh: true,
				editable: true,
				// onClickRow:operateEvents,
				// showColumns: true,
				pagination: true,
				//		striped: true,
				sidePagination: 'server',

			});
		}
	}
	
	function result(state){
		if(state=="0"){
			return "<p class='blue'>已通过</p>"
		}else{
			return "<p class='red'>已拒绝</p>"
		}
	}

}])

//下拉刷新